import {postUrl,post} from '@/utils/request.js'

// 获取滑块
export async function getPic(mobile) {
  return postUrl(`/applet/send/getPic?mobile=${mobile}`)
}
// 验证滑块
export async function checkcapcode(data) {
  return postUrl(`/applet/send/checkcapcode?xpos=${data.xpos}&capcode=${data.capcode}&mobile=${data.mobile}`);
}
/**
 * 验证码
 */
export async function postSend (mobile, randNum) {
  return postUrl(`/applet/send/number?mobile=${mobile}&randNum=${randNum}`);
}
//获取行政区划列表
export async function showProvince(data) {
  return post(`/applet/agency/showProvince`,data)
}
//获取报销单位列表
export async function crossProQueryAgencyList(data) {
  return post(`/applet/reimbursement/person/crossProQueryAgencyList`,data)
}
/**
* 邮件获取滑块
*/
export async function getEmailPic () {
  return postUrl(`/applet/send/getEmailPic`);
}
/**
* 邮件校验滑块
*/
export async function checkeamilcapcode (data) {
  return postUrl(`/applet/send/checkeamilcapcode?xpos=${data.xpos}&capcode=${data.capcode}`);
}